package com.xinqi.modules.sys.rotation.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xinqi.common.mybatis.data.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * 系统轮播图实体层
 *
 * @author: yyzhenn
 * @date: 2023/04/23
 */
@Setter
@Getter
@TableName("sy_rotation_image")
public class RotationImageEntity extends BaseEntity {
    /**
     * 类型，PC、APP
     */
    @TableField(value = "type")
    private String type;
    /**
     * 用户角色
     */
    @TableField(value = "user_role")
    private Integer userRole;
    /**
     * 轮播位置
     */
    @TableField(value = "position")
    private String position;
    /**
     * 名称
     */
    @TableField(value = "name")
    private String name;
    /**
     * 图片
     */
    @TableField(value = "image")
    private String image;
    /**
     * 跳转链接
     */
    @TableField(value = "url")
    private String url;
    /**
     * 排序
     */
    @TableField(value = "sort")
    private Integer sort;
    /**
     * 状态，0-禁用；1-启动
     */
    @TableField(value = "enable_status")
    private Integer enableStatus;
    /**
     * 发布时间
     */
    @TableField(value = "release_time")
    private LocalDateTime releaseTime;
    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;
}
